<?php require("header.php"); ?>
<div id="header">
    <div class="inHeaderLogin"></div>
</div>

<?php if($error = getsession('error')) { ?>
        <div class="gagal half">
        <?php echo $error; setsession('error'); ?>
        </div>
    <?php } ?>
<div id="loginForm">
    <div class="headLoginForm">
    Login Administrator
    </div>
    <div class="fieldLogin">
    <form method="POST" action="">
    <label for="email">Email</label><br>
    <input type="text" class="login" id="email" name="email" value="<?php if (isset($_POST['email'])) echo $_POST['email'];?>" /><br>
    <label for="parola">Parola</label><br>
    <input type="password" class="login" id="parola" name="parola" /><br>
    <input type="checkbox" id="minte" name="minte" value="1"<?php if(isset($_POST['minte'])) :?> checked="checled"<?php endif; ?> /><label for="minte">Tine-ma minte</label><br><br>
    <input type="submit" class="button" name="submit" value="Login">
    </form>
    </div>
</div>

<?php require("footer.php"); ?>